

<!-- IF($id<=0) -->

<table border="1" width="100%" id="table1" style="border-collapse: collapse" cellspacing="1" cellpadding="2" bordercolor="#C6C6C6">
	<tr>
		<td bgcolor="#E4E4E4" align="center" width="30">ID</td>
		<td bgcolor="#E4E4E4" align="center">标题</td>
		<td bgcolor="#E4E4E4" align="center" width="50">数量</td>
		<td bgcolor="#E4E4E4" align="center" width="80">操作</td>
	</tr>
<!-- while:$lt = $db->fetch_array($data_list) -->
	<tr  bgcolor="{color:#fffff,#ececec}">
		<td align="center">{lt[id]}</td>
		<td>{lt[title]}</td>
		<td align="center">{lt[nums]}</td>
		<td align="center"><a href="{sys_page}?model={model}&action={action}&id={lt[id]}">编辑</a> | 
		<a onclick="javascript:if(confirm('您确定要继续当前操作吗?'))location='{sys_page}?model={model}&action={action}&todo=del&id={lt[id]}';return false;" href="{sys_page}?model={model}&action={action}&todo=del&id={lt[id]}" style="color:#800000">删除</a></td>
	</tr>
<!-- END -->

<!-- IF($_i==0) -->
	<tr>
		<td colspan="5" height="50" align="center" class="font13"><b>目前没有数据列表</b></td>
	</tr>
<!-- END -->
</table>


<br>

<!-- END -->


<table border="1" width="100%" style="border-collapse: collapse" cellspacing="1" cellpadding="2" bordercolor="#C6C6C6">
	<tr>
		<td bgcolor="#E4E4E4" align="center" width="150">项目</td>
		<td bgcolor="#E4E4E4" align="center">内容</td>
	</tr>
	<tr>
		<td align="center">标题</td>
		<td align="left"><input type="text" name="title" size="40" value="{info[title]}"></td>
	</tr>
	<tr>
		<td align="center">照片</td>
		<td align="left"><input type="file" name="upfile" size="20">
		<!-- IF($info[attach]) -->
		<br>
		<img src="{att_dir}/{info[attach]}" onclick="window.open('{att_dir}/{info[attach]}');" border=0>
		<br>
	    <input style="background:url(images/cancel.gif) no-repeat ; border:0; padding-left: 15px;" value="删除" onclick="javascript:if(confirm('您确定要继续当前操作吗?'))location='{sys_page}?model={model}&action={action}&todo=delphoto&id={id}';return false;" type="button">
		<!-- END -->
		</td>
	</tr>
</table>